import request from '@/utils/request'

export function loginAPI(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export const getUserInfoApi = () => {
  return request.get('/sys/profile')
}

export const updatePasswordAPI = (data) => {
  return request.put('/sys/user/updatePass', data)
}

export const getHomeData = () => {
  return request('/home/data')
}

export const getHomeNotice = () => {
  return request('/home/notice')
}
